package com.tanhua.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo extends BasePojo {

    /**
     * 由于userinfo表和user表之间是一对一关系
     * userInfo的id来源于user表的id
     */
    @TableId(type = IdType.INPUT)
    private Long id; //用户id

    private String nickname; //昵称

    private String avatar; //用户头像

    private String birthday; //生日

    private String gender; //性别

    private Integer age; //年龄

    private String city; //城市

    private String income; //收入

    private String education; //学历

    private String profession; //行业

    private Integer marriage; //婚姻状态

    private String tags; //用户标签：多个用逗号分隔

    private String coverPic; // 封面图片

    //用户状态,1为正常，2为冻结
    @TableField(exist = false)
    private String userStatus = "1";

}